package com.cjj.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("forum_post")
@Accessors(chain = true)
public class ForumPost implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @TableId(value = "post_id", type = IdType.AUTO)
    private Long postId;
    
    @TableField("user_id")
    private Long userId;
    
    @TableField("title")
    private String title;
    
    @TableField("content")
    private String content;
    
    @TableField("post_type")
    private String postType;
    
    @TableField("category")
    private String category;
    
    @TableField("view_count")
    private Integer viewCount;
    
    @TableField("like_count")
    private Integer likeCount;
    
    @TableField("comment_count")
    private Integer commentCount;
    
    @TableField("is_top")
    private Boolean isTop;
    
    @TableField("is_essence")
    private Boolean isEssence;
    
    @TableField("status")
    private String status;
    
    @TableField("reject_reason")
    private String rejectReason;
    
    @TableField("create_time")
    private LocalDateTime createTime;
    
    @TableField("update_time")
    private LocalDateTime updateTime;
}